# from PyQt5.QtCore import QThread, pyqtSignal, QRunnable, QObject
# from PyQt5.QtWidgets import QApplication, QPushButton, QVBoxLayout, QWidget
#
#
# class WorkerSignals(QObject):
#     finished = pyqtSignal()
#     progress = pyqtSignal(int)
#
#
# class Worker(QRunnable):
#     def __init__(self):
#         super().__init__()
#         self.signals = WorkerSignals()
#
#     def run(self):
#         for i in range(1, 101):
#             # 模拟耗时操作
#             QThread.msleep(10000)
#             self.signals.progress.emit(i)
#         self.signals.finished.emit()
